Demo: http://demo/users/tênnick
Mod của nc ngoài sưu tầm về dịch và share cho anh em

Vào public_html/.htaccess thêm đoạn sau vào dưới cùng

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)?$ /profile/index.php?wl=$1 [NC,L]
Vào incfiles/classes/bbcode.php(tuy bien neu dung bbcode cua ari nha) tìm$var = self::highlight_code($var);[/code]
Thêm vào sau đoạn trên code sau:[code]$var = preg_replace('#@([\w\d]{2,})#si', '@<a href="/~$1">$1</a>', $var);
Vào users/profile.php tìm:if (!$user_id) {
require('../incfiles/head.php');
echo functions::display_error($lng['access_guest_forbidden']);
require('../incfiles/end.php');
exit;
}
thêm vào đàng trước code:


How to convert this ?
[code=php]
$name_lat = isset($_GET['wl']) ? trim($_GET['wl']) : '';
$name_lat = functions::rus_lat(mb_strtolower($name_lat));
if (!empty($name_lat)) {
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `name_lat` = '" . mysql_real_escape_string($name_lat) . "' LIMIT 1;"), 0) != 0)
$user = mysql_result(mysql_query("SELECT `id` FROM `users` WHERE `name_lat` = '" . mysql_real_escape_string($name_lat) . "' LIMIT 1;"), 0);
else $user = -1;
}
[/code]
im use quote is blank
[code=php]
$name_lat = isset($_GET['wl']) ? trim($_GET['wl']) : '';
$name_lat = $tools->rusLat(mb_strtolower($name_lat));
$nAm = $db->quote($name_lat);
if (!empty($name_lat)) {
    $NLat =
$db->query("SELECT COUNT(*) FROM `users` WHERE `name_lat` = '" . $nAm . "' LIMIT 1;")->fetchColumn();
    if ($NLat != 0) 
       $user = $db->query("SELECT `id` FROM `users` WHERE `name_lat` = '" . $nAm . "' LIMIT 1;")->fetchColumn();
    else 
       $user = -1;
    
}
[/code]


Xong. chúc thành công
Nguồn haycuc.us










 Demo: http: // demo / users / t
ennick
Mod of nc outer collector of care
and share to you
In public_html / .htaccess add the
following to the bottom
PHP Code:
<?php
RewriteCond
%{ REQUEST_FILENAME } !
f
RewriteCond
%{ REQUEST_FILENAME } !
d
RewriteRule ^(.*)?$ /
users / profile .
php ? wl =$ 1 [ NC ,
L ]
?>
In incfiles / classes / bbcode.php
(neu customized content ari
decent crab bbcode) find
PHP Code:
<?php
$var = self ::
highlight_code
( $var );[/ code ]
Thêm vào sau đoạn trên
code sau :[ code ]
$var = preg_replace
( '#@([\w\d]
{2,})#si' , '@<a
href="/~$1">$1</a>' ,
$var );
?>
At the users / profile.php find:
PHP Code:
<?php
if (! $user_id ) {
require( '../incfiles/
head.php' );
echo functions ::
display_error ( $lng
[ 'access_guest_forbidd
require( '../incfiles/
end.php' );
exit;
}
?>
add Ahead code:
PHP Code:
<?php
$name_lat = isset
( $_GET [ 'wl' ]) ?
trim ( $_GET
[ 'wl' ]) : '' ;
$name_lat = functions
:: rus_lat
( mb_strtolower
( $name_lat ));
if (!empty
( $name_lat )) {
if ( mysql_result
( mysql_query
Done. wish success
Source haycuc.us